﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.Drawing;
using System.Drawing.Printing;

namespace CRM1
{
    [Serializable]
    public class MapDetail
    {
        public int FontSize = 9;
        public int OffsetX = 0;
        public int OffsetY = 0;

        public int ReadingOffsetX = 0;
        public int ReadingOffsetY = 0;

        public int TitleOffsetX = 0;
        public int TitleOffsetY = 0;
        public string Title = "Title";
    }

    [Serializable]
    public class MapData
    {
        public string MorningFilename;
        public string EveningFilename;

        [XmlElement("MapDetail")]
        public MapDetail[] mMapDetails;

        [XmlElement("CityLocationDetails")]
        public CityLocationDetails[] mCityLocationDetails;
    }

    public class CWCExcelData
    {
        public string StationName;
        public int StationID;

        public string Rainfall;
        public Color mRFColor;

        public string wx;
        public Color mWXColor;

        public int MinTemp;
        public Color mMinTempColor;
        
        public int M24HrsDep;
        public Color mM24HrsDepColor;

        public int TempDiff;
        public Color mTempDiffColor;

        public int M24HrsDpDep;
        public Color mM24HrsDpDepColor;

        public int P24;
        public Color mP24Color;

        public int CorrectedPressure;
        public Color mCorrectedPressureColor;

        public int PressDepFromNormal;
        public Color mPressDepFromNormalColor;
             
    }

    [Serializable]
    public class CityLocationDetails
    {
        public int X = 0;
        public int Y=0;
        public string StationName = string.Empty;
        public int StationID = 0; 
        public string StationCode = string.Empty; // 3 letter word.


        public CityLocationDetails()
        {
            X = Y = 0;
            StationName = string.Empty;
        }
        public CityLocationDetails(int inX, int inY, string inStation)
        {
            Set(inX, inY, inStation);
        }

        public CityLocationDetails(int inX, int inY, string inStation, string inStationCode,int inStationID)
        {
            Set(inX, inY, inStation, inStationCode, inStationID);
        }
        public CityLocationDetails(CityLocationDetails inMapData)
        {
            X = inMapData.X;
            Y = inMapData.Y;
            StationName = inMapData.StationName;
            StationCode = inMapData.StationCode;
            StationID = inMapData.StationID;
        }
        
        public void Set(int inX, int inY, string inStation)
        {
            X = inX;
            Y = inY;
            StationName = inStation; 
        }



        public void Set(int inX, int inY, string inStation, string inStationCode, int inStationID)
        {
            X = inX;
            Y = inY;
            StationName = inStation;
            StationCode = inStationCode;
            StationID = inStationID;
        }
    }
}
